import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne, OneToMany, JoinColumn, ManyToMany, JoinTable } from 'typeorm';

@Entity('sysconfig')
export class Sysconfig extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: '主键ID' })
  id: number;

  @Column({ length: 255, comment: '键名' })
  key: string;

  @Column({ type: 'text', comment: '内容' })
  value: string;

  @Column({ type: 'tinyint', default: 0, comment: '是否禁用，1是0否' })
  is_disable: number;

  @Column({ type: 'tinyint', default: 0, comment: '是否删除，1是0否' })
  is_delete: number;

  @Column({ default: 0, comment: '添加用户id' })
  create_uid: number;

  @Column({ default: 0, comment: '修改用户id' })
  update_uid: number;

  @Column({ default: 0, comment: '删除用户id' })
  delete_uid: number;

  @Column({ type: 'datetime', nullable: true, comment: '创建时间' })
  create_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '修改时间' })
  update_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '删除时间' })
  delete_time: Date;

  @Column({ length: 255, nullable: true, comment: '类型' })
  type: string;

  @Column({ length: 255, nullable: true, comment: '描述' })
  title: string;

  @Column({ length: 255, nullable: true, comment: '备注' })
  remark: string;

  @Column({ length: 255, nullable: true, comment: '分组' })
  groupid: string;
}